//
//  UserManager.h
//  SLDemo
//
//  Created by bocai on 2016/12/2.
//  Copyright © 2016年 Heracles. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AccountModel.h"

@interface UserManager : NSObject

@property (strong, nonatomic) AccountModel *account;
@property (assign, readonly) BOOL isLoggedIn;

+ (instancetype)sharedManager;

- (void)loginWithUserName:(NSString *)userName
                 password:(NSString *)password;

- (void)logout;

- (void)registerWithUserName:(NSString *)userName
                    password:(NSString *)password;

@end
